package com.ash.bean.anno.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.ash.bean.anno.User;
import com.ash.bean.anno.service.UserService;

@Controller
public class UserController {
	

	private UserService userService;

	public void excute(User user) {
		System.out.println("controller add");
		userService.add(user);
	}

	@Autowired
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
}
